import time
from selenium import webdriver

driver = webdriver.Chrome()
driver.get('http://192.168.199.128:8080/cms')
driver.maximize_window()
driver.find_element_by_id('userAccount').send_keys('admin')
driver.find_element_by_id('loginPwd').send_keys('123456')
driver.find_element_by_id('loginBtn').click()
time.sleep(1)
suc=driver.find_element_by_class_name('c-white').text
assert '超级管理员：admin' == suc
driver.quit()





